package main

import (
	_ "study_gf/boot"
	_ "study_gf/router"

	"study_gf/document"

	"github.com/gogf/gf/frame/g"
	"github.com/gogf/swagger"
)

func main() {
	s := g.Server()
	// 处理全局异常 自定义日志处理 允许跨域 可以在这里实现
	s.Use(document.MiddlewareErrorHandler, document.MiddlewareLog, document.MiddlewareCORS)
	s.Plugin(&swagger.Swagger{
		Info: swagger.SwaggerInfo{
			Title:       "kindergarten",
			Description: "这是程序端的管理系统平台的相关api",
			Version:     "1.0.0",
		},
	})
	s.Run()
}
